<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>诗意书签收藏夹 - 使用指南</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #6c5ce7;
            --primary-light: #a29bfe;
            --dark: #2d3436;
            --light: #f7f7f7;
            --glass-bg: rgba(255, 255, 255, 0.25);
            --glass-border: rgba(255, 255, 255, 0.18);
            --shadow: rgba(50, 50, 93, 0.1) 0px 6px 12px -2px, rgba(0, 0, 0, 0.1) 0px 3px 7px -3px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Courier New', Courier, monospace;
            background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding: 0;
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3') center/cover no-repeat;
            opacity: 0.08;
            z-index: -1;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .logo {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 15px;
            animation: float 4s ease-in-out infinite;
        }
        
        h1 {
            font-family: '宋体', SimSun, serif;
            font-size: 3.5rem;
            color: var(--dark);
            margin-bottom: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            background: linear-gradient(45deg, var(--primary), #0984e3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .subtitle {
            font-family: '宋体', SimSun, serif;
            font-size: 1.4rem;
            color: var(--dark);
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.85;
        }
        
        .guide-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 35px;
            margin-top: 40px;
        }
        
        /* 指南卡片样式 */
        .guide-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid var(--glass-border);
            position: relative;
            transform-style: preserve-3d;
            perspective: 1000px;
        }
        
        .guide-card:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: 0 20px 30px rgba(94, 114, 228, 0.3);
        }
        
        .card-header {
            padding: 30px 25px;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .card-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--card-color, var(--primary)) 0%, var(--card-color-secondary, #825ee4) 100%);
            z-index: -1;
            opacity: 0.9;
        }
        
        .card-header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('https://www.transparenttextures.com/patterns/always-grey.png');
            opacity: 0.05;
            z-index: -1;
        }
        
        .card-icon {
            width: 70px;
            height: 70px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            flex-shrink: 0;
            backdrop-filter: blur(5px);
            font-size: 2.2rem;
            color: white;
        }
        
        .card-title {
            font-family: '宋体', SimSun, serif;
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: white;
        }
        
        .card-subtitle {
            font-family: '宋体', SimSun, serif;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.85);
        }
        
        .card-body {
            padding: 30px;
            flex-grow: 1;
        }
        
        .card-content {
            font-family: 'Courier New', Courier, monospace;
            margin-bottom: 25px;
            color: var(--dark);
            font-size: 1.05rem;
            line-height: 1.8;
        }
        
        .code-block {
            background: rgba(0, 0, 0, 0.05);
            padding: 20px;
            border-radius: 12px;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.95rem;
            color: var(--dark);
            margin-bottom: 20px;
            overflow-x: auto;
            border-left: 4px solid var(--card-color, var(--primary));
        }
        
        .code-comment {
            color: #2e7d32;
            font-style: italic;
        }
        
        .code-keyword {
            color: #d81b60;
            font-weight: bold;
        }
        
        .code-string {
            color: #0d47a1;
        }
        
        .code-variable {
            color: #6a1b9a;
        }
        
        .card-footer {
            padding: 20px;
            background: rgba(255, 255, 255, 0.3);
            display: flex;
            justify-content: center;
            border-top: 1px solid rgba(0,0,0,0.05);
        }
        
        /* 颜色主题 */
        .color-theme-1 {
            --card-color: #6c5ce7;
            --card-color-secondary: #825ee4;
        }
        
        .color-theme-2 {
            --card-color: #00cec9;
            --card-color-secondary: #00b894;
        }
        
        .color-theme-3 {
            --card-color: #fd79a8;
            --card-color-secondary: #e84393;
        }
        
        .color-theme-4 {
            --card-color: #fdcb6e;
            --card-color-secondary: #e17055;
        }
        
        .color-theme-5 {
            --card-color: #74b9ff;
            --card-color-secondary: #0984e3;
        }
        
        .color-theme-6 {
            --card-color: #a29bfe;
            --card-color-secondary: #6c5ce7;
        }
        
        footer {
            text-align: center;
            padding: 60px 0 30px;
            color: var(--dark);
            font-size: 1rem;
            margin-top: 50px;
            opacity: 0.9;
            font-family: '宋体', SimSun, serif;
        }
        
        /* 动画 */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            
            .subtitle {
                font-size: 1.2rem;
            }
            
            .guide-container {
                grid-template-columns: 1fr;
            }
            
            .card-header {
                padding: 20px;
            }
            
            .card-icon {
                width: 60px;
                height: 60px;
                font-size: 1.8rem;
            }
            
            .card-title {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 2rem;
            }
            
            .logo {
                font-size: 3rem;
            }
            
            .card-header {
                flex-direction: column;
                text-align: center;
                padding: 25px 15px;
            }
            
            .card-icon {
                margin-right: 0;
                margin-bottom: 15px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="logo">
                <i class="fas fa-bookmark"></i>
            </div>
            <h1>诗意书签收藏夹 - 使用指南</h1>
            <p class="subtitle">优雅管理您的网络足迹，每个书签都是知识的灯塔</p>
        </header>
        
        <div class="guide-container">
            <!-- 功能概述卡片 -->
            <div class="guide-card color-theme-1">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-star"></i>
                    </div>
                    <div>
                        <div class="card-title">功能概述</div>
                        <div class="card-subtitle">诗意书签的核心功能</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p><i class="fas fa-check-circle"></i> <strong>诗意化设计</strong> - 每个书签以色彩缤纷的卡片呈现</p>
                        <p><i class="fas fa-check-circle"></i> <strong>分类管理</strong> - 左侧分类栏管理不同标签的书签</p>
                        <p><i class="fas fa-check-circle"></i> <strong>搜索功能</strong> - 支持名称、描述、标签和备注搜索</p>
                        <p><i class="fas fa-check-circle"></i> <strong>响应式布局</strong> - 适配各种设备屏幕尺寸</p>
                        <p><i class="fas fa-check-circle"></i> <strong>玻璃拟态效果</strong> - 优雅的毛玻璃UI设计</p>
                        <p><i class="fas fa-check-circle"></i> <strong>书签计数</strong> - 每个分类显示包含的书签数量</p>
                    </div>
                </div>
            </div>
            
            <!-- 添加书签卡片 -->
            <div class="guide-card color-theme-2">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-plus-circle"></i>
                    </div>
                    <div>
                        <div class="card-title">添加书签</div>
                        <div class="card-subtitle">如何添加新的书签</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p>要添加新书签，需要编辑<strong>bookmarks</strong>数组：</p>
                        
                        <div class="code-block">
                            <span class="code-comment">// 在bookmarks数组中添加新对象</span><br>
                            <span class="code-keyword">const</span> bookmarks = [<br>
                            &nbsp;&nbsp;{<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">title</span>: <span class="code-string">"网站名称"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">tags</span>: [<span class="code-string">"分类1"</span>, <span class="code-string">"分类2"</span>],<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">url</span>: <span class="code-string">"https://example.com"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">description</span>: <span class="code-string">"网站描述"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">iconUrl</span>: <span class="code-string">"https://example.com/favicon.ico"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">notes</span>: <span class="code-string">"个人备注"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">createdAt</span>: <span class="code-string">"2023-01-01"</span>,<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">colorTheme</span>: <span class="code-string">"color-theme-1"</span><br>
                            &nbsp;&nbsp;},<br>
                            &nbsp;&nbsp;<span class="code-comment">// 在此处添加新书签...</span><br>
                            ];
                        </div>
                        
                        <p><strong>参数说明：</strong></p>
                        <ul>
                            <li><code>title</code>：网站名称</li>
                            <li><code>tags</code>：分类标签数组</li>
                            <li><code>url</code>：网站地址</li>
                            <li><code>description</code>：网站描述</li>
                            <li><code>iconUrl</code>：网站图标URL</li>
                            <li><code>notes</code>：个人备注</li>
                            <li><code>createdAt</code>：收藏日期（YYYY-MM-DD）</li>
                            <li><code>colorTheme</code>：卡片颜色主题（可选）</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 删除书签卡片 -->
            <div class="guide-card color-theme-3">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-trash-alt"></i>
                    </div>
                    <div>
                        <div class="card-title">删除书签</div>
                        <div class="card-subtitle">如何删除现有书签</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p>要删除书签，需要从<strong>bookmarks</strong>数组中移除对应对象：</p>
                        
                        <div class="code-block">
                            <span class="code-comment">// 删除指定索引的书签</span><br>
                            <span class="code-keyword">function</span> <span class="code-variable">deleteBookmark</span>(index) {<br>
                            &nbsp;&nbsp;<span class="code-keyword">if</span> (confirm(<span class="code-string">`确定要删除"${bookmarks[index].title}"书签吗？`</span>)) {<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;bookmarks.splice(index, 1);<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;renderBookmarks(bookmarks);<br>
                            &nbsp;&nbsp;}<br>
                            }<br>
                        </div>
                        
                        <p><strong>操作步骤：</strong></p>
                        <ol>
                            <li>在书签数组中找到要删除的书签</li>
                            <li>使用数组的splice方法移除该书签</li>
                            <li>调用renderBookmarks()函数刷新界面</li>
                        </ol>
                        
                        <p><strong>界面操作：</strong></p>
                        <p>在书签卡片上点击"删除"按钮可直接删除书签</p>
                    </div>
                </div>
            </div>
            
            <!-- 修改书签卡片 -->
            <div class="guide-card color-theme-4">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-edit"></i>
                    </div>
                    <div>
                        <div class="card-title">修改书签</div>
                        <div class="card-subtitle">如何编辑现有书签</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p>要修改书签，需要更新<strong>bookmarks</strong>数组中对应的对象属性：</p>
                        
                        <div class="code-block">
                            <span class="code-comment">// 修改指定索引的书签</span><br>
                            <span class="code-keyword">function</span> <span class="code-variable">editBookmark</span>(index) {<br>
                            &nbsp;&nbsp;<span class="code-comment">// 获取要编辑的书签</span><br>
                            &nbsp;&nbsp;<span class="code-keyword">const</span> bookmark = bookmarks[index];<br>
                            <br>
                            &nbsp;&nbsp;<span class="code-comment">// 更新书签属性</span><br>
                            &nbsp;&nbsp;bookmark.title = <span class="code-string">"新网站名称"</span>;<br>
                            &nbsp;&nbsp;bookmark.tags = [<span class="code-string">"新分类1"</span>, <span class="code-string">"新分类2"</span>];<br>
                            &nbsp;&nbsp;bookmark.description = <span class="code-string">"新描述"</span>;<br>
                            <br>
                            &nbsp;&nbsp;<span class="code-comment">// 刷新界面</span><br>
                            &nbsp;&nbsp;renderBookmarks(bookmarks);<br>
                            }<br>
                        </div>
                        
                        <p><strong>可修改的属性：</strong></p>
                        <ul>
                            <li><code>title</code>：网站名称</li>
                            <li><code>tags</code>：分类标签</li>
                            <li><code>url</code>：网站地址</li>
                            <li><code>description</code>：网站描述</li>
                            <li><code>iconUrl</code>：网站图标</li>
                            <li><code>notes</code>：个人备注</li>
                            <li><code>colorTheme</code>：卡片颜色主题</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 分类管理卡片 -->
            <div class="guide-card color-theme-5">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-tags"></i>
                    </div>
                    <div>
                        <div class="card-title">分类管理</div>
                        <div class="card-subtitle">如何添加/修改分类</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p>分类管理通过修改<strong>categories</strong>数组实现：</p>
                        
                        <div class="code-block">
                            <span class="code-comment">// 分类配置数组</span><br>
                            <span class="code-keyword">const</span> categories = [<br>
                            &nbsp;&nbsp;{ <br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">id</span>: <span class="code-string">'all'</span>, <br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">name</span>: <span class="code-string">'全部收藏'</span>, <br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">icon</span>: <span class="code-string">'fas fa-star'</span>, <br>
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="code-variable">color</span>: <span class="code-string">'#6c5ce7'</span> <br>
                            &nbsp;&nbsp;},<br>
                            &nbsp;&nbsp;<span class="code-comment">// 在此处添加新分类...</span><br>
                            ];
                        </div>
                        
                        <p><strong>分类属性说明：</strong></p>
                        <ul>
                            <li><code>id</code>：分类唯一标识符</li>
                            <li><code>name</span></code>：分类显示名称</li>
                            <li><code>icon</code>：Font Awesome图标类</li>
                            <li><code>color</code>：分类主题颜色</li>
                        </ul>
                        
                        <p><strong>注意事项：</strong></p>
                        <p>添加新分类后，书签的<code>tags</code>属性需要包含对应的分类名称才能被归类</p>
                    </div>
                </div>
            </div>
            
            <!-- 使用技巧卡片 -->
            <div class="guide-card color-theme-6">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-lightbulb"></i>
                    </div>
                    <div>
                        <div class="card-title">使用技巧</div>
                        <div class="card-subtitle">诗意书签的高级用法</div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="card-content">
                        <p><strong>1. 颜色主题</strong></p>
                        <p>每个书签可以指定不同的颜色主题：</p>
                        <ul>
                            <li><code>color-theme-1</code> 到 <code>color-theme-6</code></li>
                            <li>在书签对象中添加<code>colorTheme</code>属性</li>
                        </ul>
                        
                        <p><strong>2. 图标处理</strong></p>
                        <p>当网站图标加载失败时：</p>
                        <ul>
                            <li>自动显示默认书签图标</li>
                            <li>使用Font Awesome的书籍图标作为后备</li>
                        </ul>
                        
                        <p><strong>3. 响应式设计</strong></p>
                        <p>在小屏幕设备上：</p>
                        <ul>
                            <li>左侧分类栏自动隐藏</li>
                            <li>点击左上角菜单按钮显示分类栏</li>
                            <li>书签卡片自动调整为单列布局</li>
                        </ul>
                        
                        <p><strong>4. 数据存储</strong></p>
                        <p>当前为静态实现：</p>
                        <ul>
                            <li>所有数据存储在JavaScript数组中</li>
                            <li>可通过localStorage或数据库扩展为动态存储</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        
        <footer>
            <p>© 2023 诗意书签收藏夹 | 优雅管理您的网络足迹</p>
            <p>每个书签都是时光的印记，智慧的航标</p>
        </footer>
    </div>

    <script>
        // 为卡片添加动画效果
        document.addEventListener('DOMContentLoaded', function() {
            const cards = document.querySelectorAll('.guide-card');
            cards.forEach((card, index) => {
                card.style.animation = `fadeIn 0.5s ease ${index * 0.1}s forwards`;
                card.style.opacity = 0;
            });
        });
    </script>
</body>
</html>